@section('title')
    咨询详情 @parent
@show

@section('content')
	{{ HTML::style('css/questionlawyer.css')}}
	{{ HTML::script('js/question/publicQuestionView.js') }}
    <div class="container issueDetail">
	    <div class="fl left-view-box">
	    	<div class="top-but">
	    		<span class="font16 colorD isquestion-type">{{ $data['post_category_str'] }}</span>
	    		@if($data['is_collect'])
		    	<a class="collect-on fr oh" data-id="{{ $data['id'] }}"><i class="fl"></i> <span class="fl font14"> 收藏 </span></a>
		    	@else
		    	<a class="collect-off fr oh" data-id="{{ $data['id'] }}"><i class="fl"></i> <span class="fl font14"> 收藏 </span></a>
		    	@endif
	    	</div>
	    	<div class="boxr question-info">
	    		<p class="font20 colorE">{{ $data['title'] }}</p>
	    		<p class="font16 colorF" style="line-height:30px">{{ $data['content'] }}</p>
	    		<p  class="font14 colorD">
					@if( $data['creator_realname'])
					<span>{{ $data['creator_realname'] }}</span>
	    			@else
	    			<span>匿名用户</span>
	    			@endif
	    			 &nbsp;&nbsp;&nbsp;&nbsp;<span>{{ $data['difference_date'] }}</span></p>
	    	</div>
	    	<div class="title font18 colorF bold">律师回答</div>
	    	<ul class="lv-reply-list" style="min-height:300px;">
	    	</ul>
	    	<div class="butA load-more" style="margin-left:320px;display: none;">加载更多</div>
			@if(Auth::check())
				@if(Auth::user()->isVerifiedLawyer())
				<div class="type-lv">
					<div class="oh" style="margin-top:60px;">
		    			<div class="fl" style="margin: 10px;">
		    				<a href="javascript:void(0);" class="lvimg"><img src="{{ Config::get('app.url') }}@if(Auth::check())/file/show?path={{Auth::user()->avatar}} @else/img/dfimg.png @endif" width="60" height="60" style="border-radius: 50%;"></a>
		    			</div>
		    			<div  class="fr" style="position: relative;">
			    			<span class="iconleft1"></span>
			    			<textarea class="textarea" id="" maxlength="300" placeholder="请认真填写您的回答" onfocus="this.placeholder=''" onblur="this.placeholder='请认真填写您的回答'"></textarea>
			    		</div>
			    	</div>
			    	<div class="Release-response" >发布回答</div>
			    </div>	
				@else
					<div class="oh">
					</div>
				@endif
			@else
				<div class="oh" style="margin-top:60px;">
	    			<div class="fl" style="margin: 10px;">
	    				<a href="javascript:void(0);" class="lvimg"><img src="{{ Config::get('app.url') }}@if(Auth::check())/file/show?path={{Auth::user()->avatar}} @else/img/dfimg.png @endif" width="60" height="60" style="border-radius: 50%;"></a>
	    			</div>
	    			<div  class="fr" style="position: relative;">
		    			<span class="iconleft1"></span>
		    			<textarea class="textarea" id="" maxlength="1000" placeholder="请认真填写您的回答" onfocus="this.placeholder=''" onblur="this.placeholder='请认真填写您的回答'"></textarea>
		    		</div>
		    	</div>
		    	<div class="Release-response" >发布回答</div>
			@endif
	    </div>
    	<div class="right-release-box borderC fr">
    		<p class="font18" style="color:#7f7f7f;line-height:30px;">发布您的提问，平台推送给专业律师为您答谢</p>
    		@if(Auth::check())
				@if(Auth::user()->isVerifiedLawyer())
    				<div class="view-release" style="background-color:#b7b7b7;">发布提问</div>
    			@else
    				<a class="view-release" href="{{route('question.public.commit')}}">发布提问</a>
    			@endif
    		@else
    			<a class="view-release" href="{{route('question.public.commit')}}">发布提问</a>
    		@endif
    		
    	</div>
    	{{ Form::token() }}
	    <div class="lawyerReply">
	    </div>
	</div>
<div class="Popup1" style="">
	<p class="title font24" >打赏给律师</p>
	<p style="margin:20px 0;"><img class="lv-avatar" src="{{ Config::get('app.url') }}/img/dfimg.png" width="80" height="80" style="border-radius: 50%;"></p>
	<p class="font18 colorF lv-realname">陈刚律师</p>
	<div class="reward-money"><span class="colorF font24">￥</span> <span class="colorF font20 money-num">5</span><i></i></div>
	<p><a href="javascript:void(0);" class="to-reward">去打赏</a></p>
</div>
<script type="text/javascript">
	var id = "{{ $data['id'] }}";
	var jumpUrl = "{{ Config::get('app.url') }}";
	var islogin = "{{ Auth::check() }}";
	var login_isLawyer_id = "@if(Auth::check()){{Auth::user()->isVerifiedLawyer()}}@endif";
	var user_id = "@if(Auth::check()){{Auth::user()->id}}@endif";
</script>
@show
